package com.lsh.payment.core.strategy.config;

import com.lsh.payment.core.util.PropertiesUtil;
import org.springframework.stereotype.Component;

/**
 * Project Name: lsh-payment
 *
 * @author miaozhuang
 * @date 16/10/26
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@Component
public class IpcPayConfig {

    public static final String url = PropertiesUtil.getValue("ipc.request.url") + "/apiservice.do";
    public static final String url_image = PropertiesUtil.getValue("ipc.request.url") + "/apiplain.do";
    public static final String merchantPfxPath = PropertiesUtil.getValue("ipc.merchantPfxPath");
    public static final String publicKeyPath = PropertiesUtil.getValue("ipc.publicKeyPath");

    public static final String agentUrl = PropertiesUtil.getValue("ipc.request.agentUrl");

    public static final String payCertPath = PropertiesUtil.getValue("ipc.payCertPath");

    public static final String platmerid = PropertiesUtil.getValue("ipc.platmerid");

    public static final String merchantId = PropertiesUtil.getValue("ipc.merchantId");

    public static final String merid_yg = "QR2000417344";

    public static final String merid_lx = "QR2000417344";

    public static final String notifyUrlQr1001 = PropertiesUtil.getValue("ipc.notify.Qr1001");

    public static final String notifyUrlQr1002 = PropertiesUtil.getValue("ipc.notify.Qr1002");

    public static final String QR1001 = "QR1001";
    public static final String QR1002 = "QR1002";
    public static final String QR1003 = "QR1003";
    public static final String QR1008 = "QR1008";
    public static final String QR1010 = "QR1010";


    public static final String CP0001 = "CP0001";
    public static final String CP0002 = "CP0002";
    public static final String CP0022 = "CP0022";
    public static final String CP0023 = "CP0023";
    public static final String CP0028 = "CP0028";
    public static final String CP0029 = "CP0029";
    public static final String CP0030 = "CP0030";
    public static final String CP0032 = "CP0032";
    public static final String CP0034 = "CP0034";


    public static final String imageBasePath = PropertiesUtil.getValue("ipc.imageBasePath");
    public static final String imageMerchant = PropertiesUtil.getValue("ipc.imageMerchant");

    //进行中
    public static final String TRADE_STATE_ING = "W000000000";
    //交易成功
    public static final String PAY_STATE_SUCCESS = "C000000000";

    //商品名
    public static final String GOODS_NAME = "链商-支付";

    public static final String GOODS_NAME_2 = "链商(中投)-支付";
    //微信扫码
    public static final String PAY_TYPE_WX = "API_WXQRCODE";
    //支付宝扫码
    public static final String PAY_TYPE_ALI = "API_ZFBQRCODE";

    public static final String IPC_PAY_TITLE = "订单支付:{0}";

    public static final String NOTIFY_URL = PropertiesUtil.getValue("ipc.notify.url");

    public static final String REQUSET_MESSAGE = "message";
    public static final String REQUSET_MESSAGE_SIGN = "sign";
    public static final String REQUSET_MESSAGE_DATA = "data";
    public static final String REQUSET_MESSAGE_DATA_HEAD = "head";
    public static final String REQUSET_MESSAGE_DATA_BODY = "body";

    public static final String REQUSET_DATA_BODY_MERID = "merid";
    public static final String REQUSET_DATA_BODY_ORIGTRANFLOW = "origtranflow";

    public static final String REQUSET_DATA = "data";
    public static final String REQUSET_FORMATTYPE = "formatType";
    public static final String REQUSET_FORMATTYPE_VALUE = "json";
    public static final String REQUSET_CRYPTTYPE = "cryptType";
    public static final String REQUSET_CRYPTTYPE_VALUE = "cert";
    public static final String REQUSET_SIGNTYPE = "signType";
    public static final String REQUSET_SIGNTYPE_VALUE = "cert";

    public static final String RESPONSE_BODY_CODEURL = "codeUrl";

    public static final String RESPONSE_BODY_QRCODE = "qrcode";

    public static final String RESPONSE_BODY_TRADE_CODE = "out_trade_no";

    public static final String PAY_SUCCESS = "01";



    public static final String API_VERTION = "2.0.0";
    public static final String API_MSGTYPE = "0001";
    public static final String API_CHANNELNO = "99";

    public static final String SMSTEMPLATEID_1 = "001";
    public static final String SMSTEMPLATEID_2 = "002";
    public static final String SMSTEMPLATEID_3 = "003";

    //拉卡拉ftp文件名 partern
    public static final String IPC_FTP_FILENAME = "{0}.txt";
    //拉卡拉下载文件名
    public static final String IPC_LOCAL_FILENAME = "ipc_bill_{0}.txt";
    //拉卡拉SFTP host
    public static final String SFTP_HOST = "61.135.39.67";
    //
    public static final int SFTP_PORT = 22;
    //用户名
    public static final String SFTP_USERNAME = "CF2000417323";
    //密码
    public static final String SFTP_PWD = "123456";

}
